package com.yy.main.app.mapper;

import com.yy.pojo.base.TKeywordMessage;
import com.yy.pojo.base.TKeywordMessageExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 关键字与消息的关联表，一个关键字可以包含多个图文消息，但却不可以包含多个文本消息 Mapper 接口
 * </p>
 *
 * @author 杨阳
 * @since 2017-09-20
 */
@Resource(name = "dataSource")
@Repository
public interface TKeywordMessageMapper {
    long countByExample(TKeywordMessageExample example);

    int deleteByExample(TKeywordMessageExample example);

    int deleteByPrimaryKey(@Param("id") String id, @Param("keyword_id") String keyword_id, @Param("message_id") String message_id);

    int insert(TKeywordMessage record);

    int insertSelective(TKeywordMessage record);

    List<TKeywordMessage> selectByExample(TKeywordMessageExample example);

    TKeywordMessage selectByPrimaryKey(@Param("id") String id, @Param("keyword_id") String keyword_id, @Param("message_id") String message_id);

    int updateByExampleSelective(@Param("record") TKeywordMessage record, @Param("example") TKeywordMessageExample example);

    int updateByExample(@Param("record") TKeywordMessage record, @Param("example") TKeywordMessageExample example);

    int updateByPrimaryKeySelective(TKeywordMessage record);

    int updateByPrimaryKey(TKeywordMessage record);

}